package com.yunqiao.service.api.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunqiao.common.utils.PageUtils;
import com.yunqiao.common.utils.Query;
import com.yunqiao.service.api.FeedbackService;
import com.yunqiao.service.api.entity.FeedbackEntity;
import com.yunqiao.service.api.mapper.FeedbackMapper;
import com.yunqiao.service.api.vo.FeedbackVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("feedbackService")
public class FeedbackServiceImpl extends ServiceImpl<FeedbackMapper, FeedbackEntity> implements FeedbackService {

    @Autowired
    private FeedbackMapper feedbackMapper;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FeedbackVo> page = this.feedbackMapper.feeselectPage(new Query(params).getPage(), params);
        return new PageUtils(page);
    }

}
